package com.tsing.cedap.rest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author TheTsing
 * @since 2022-01-21
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cedap_user")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String name;

    private String nickname;

    /**
     * 手机号 唯一
     */
    private String phone;

    private String avatar;

    private Boolean enabled;

    private Date updateTime;

    private Date createTime;

    /**
     * 角色：1 双端  2 小程序
     */
    private Integer role;

    /**
     * 学院
     */
    private String collegeId;

    /**
     * 学号
     */
    private String number;

    private String description;

    /**
     * 是否注册服务人员 0 不是  1 审核中  2 是
     */
    private Integer isRider;


}
